package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallOrderPlan;
import com.appkubes.mall.core.po.MallOrderPlanExample;
import com.appkubes.mall.core.po.MallOrderPlanKey;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallOrderPlanMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderPlanSqlProvider.class, method="countByExample")
    long countByExample(MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallOrderPlanSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_order_plan",
        "where order_plan_key = #{orderPlanKey,jdbcType=VARCHAR}",
          "and order_key = #{orderKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(MallOrderPlanKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_order_plan (order_plan_key, order_key, ",
        "app_key, line_key, ",
        "clerk_key, plan_time, ",
        "plan_num, goods_key, ",
        "leader_key, salesman_key, ",
        "user_key, saas_userid, ",
        "order_type, delivery_key, ",
        "price, goods_name, ",
        "pic, attr_names, ",
        "pay_amount, `state`, ",
        "is_change, change_log, ",
        "is_purchasing, is_delete, ",
        "is_show, create_time, ",
        "update_time, version, ",
        "attr_keys)",
        "values (#{orderPlanKey,jdbcType=VARCHAR}, #{orderKey,jdbcType=VARCHAR}, ",
        "#{appKey,jdbcType=VARCHAR}, #{lineKey,jdbcType=VARCHAR}, ",
        "#{clerkKey,jdbcType=VARCHAR}, #{planTime,jdbcType=INTEGER}, ",
        "#{planNum,jdbcType=INTEGER}, #{goodsKey,jdbcType=VARCHAR}, ",
        "#{leaderKey,jdbcType=VARCHAR}, #{salesmanKey,jdbcType=VARCHAR}, ",
        "#{userKey,jdbcType=VARCHAR}, #{saasUserid,jdbcType=CHAR}, ",
        "#{orderType,jdbcType=TINYINT}, #{deliveryKey,jdbcType=VARCHAR}, ",
        "#{price,jdbcType=DECIMAL}, #{goodsName,jdbcType=VARCHAR}, ",
        "#{pic,jdbcType=VARCHAR}, #{attrNames,jdbcType=VARCHAR}, ",
        "#{payAmount,jdbcType=DECIMAL}, #{state,jdbcType=VARCHAR}, ",
        "#{isChange,jdbcType=TINYINT}, #{changeLog,jdbcType=VARCHAR}, ",
        "#{isPurchasing,jdbcType=TINYINT}, #{isDelete,jdbcType=TINYINT}, ",
        "#{isShow,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER}, ",
        "#{updateTime,jdbcType=INTEGER}, #{version,jdbcType=INTEGER}, ",
        "#{attrKeys,jdbcType=LONGVARCHAR})"
    })
    int insert(MallOrderPlan record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallOrderPlanSqlProvider.class, method="insertSelective")
    int insertSelective(MallOrderPlan record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderPlanSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="order_plan_key", property="orderPlanKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="line_key", property="lineKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="clerk_key", property="clerkKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="plan_time", property="planTime", jdbcType=JdbcType.INTEGER),
        @Result(column="plan_num", property="planNum", jdbcType=JdbcType.INTEGER),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="order_type", property="orderType", jdbcType=JdbcType.TINYINT),
        @Result(column="delivery_key", property="deliveryKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_change", property="isChange", jdbcType=JdbcType.TINYINT),
        @Result(column="change_log", property="changeLog", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_purchasing", property="isPurchasing", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="is_show", property="isShow", jdbcType=JdbcType.TINYINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallOrderPlan> selectByExampleWithBLOBsWithRowbounds(MallOrderPlanExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderPlanSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="order_plan_key", property="orderPlanKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="line_key", property="lineKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="clerk_key", property="clerkKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="plan_time", property="planTime", jdbcType=JdbcType.INTEGER),
        @Result(column="plan_num", property="planNum", jdbcType=JdbcType.INTEGER),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="order_type", property="orderType", jdbcType=JdbcType.TINYINT),
        @Result(column="delivery_key", property="deliveryKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_change", property="isChange", jdbcType=JdbcType.TINYINT),
        @Result(column="change_log", property="changeLog", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_purchasing", property="isPurchasing", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="is_show", property="isShow", jdbcType=JdbcType.TINYINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallOrderPlan> selectByExampleWithBLOBs(MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderPlanSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="order_plan_key", property="orderPlanKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="line_key", property="lineKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="clerk_key", property="clerkKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="plan_time", property="planTime", jdbcType=JdbcType.INTEGER),
        @Result(column="plan_num", property="planNum", jdbcType=JdbcType.INTEGER),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="order_type", property="orderType", jdbcType=JdbcType.TINYINT),
        @Result(column="delivery_key", property="deliveryKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_change", property="isChange", jdbcType=JdbcType.TINYINT),
        @Result(column="change_log", property="changeLog", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_purchasing", property="isPurchasing", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="is_show", property="isShow", jdbcType=JdbcType.TINYINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallOrderPlan> selectByExampleWithRowbounds(MallOrderPlanExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallOrderPlanSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="order_plan_key", property="orderPlanKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="line_key", property="lineKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="clerk_key", property="clerkKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="plan_time", property="planTime", jdbcType=JdbcType.INTEGER),
        @Result(column="plan_num", property="planNum", jdbcType=JdbcType.INTEGER),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="order_type", property="orderType", jdbcType=JdbcType.TINYINT),
        @Result(column="delivery_key", property="deliveryKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_change", property="isChange", jdbcType=JdbcType.TINYINT),
        @Result(column="change_log", property="changeLog", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_purchasing", property="isPurchasing", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="is_show", property="isShow", jdbcType=JdbcType.TINYINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallOrderPlan> selectByExample(MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "order_plan_key, order_key, app_key, line_key, clerk_key, plan_time, plan_num, ",
        "goods_key, leader_key, salesman_key, user_key, saas_userid, order_type, delivery_key, ",
        "price, goods_name, pic, attr_names, pay_amount, `state`, is_change, change_log, ",
        "is_purchasing, is_delete, is_show, create_time, update_time, version, attr_keys",
        "from mall_order_plan",
        "where order_plan_key = #{orderPlanKey,jdbcType=VARCHAR}",
          "and order_key = #{orderKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="order_plan_key", property="orderPlanKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="line_key", property="lineKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="clerk_key", property="clerkKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="plan_time", property="planTime", jdbcType=JdbcType.INTEGER),
        @Result(column="plan_num", property="planNum", jdbcType=JdbcType.INTEGER),
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="leader_key", property="leaderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="salesman_key", property="salesmanKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="saas_userid", property="saasUserid", jdbcType=JdbcType.CHAR),
        @Result(column="order_type", property="orderType", jdbcType=JdbcType.TINYINT),
        @Result(column="delivery_key", property="deliveryKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="attr_names", property="attrNames", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_amount", property="payAmount", jdbcType=JdbcType.DECIMAL),
        @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_change", property="isChange", jdbcType=JdbcType.TINYINT),
        @Result(column="change_log", property="changeLog", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_purchasing", property="isPurchasing", jdbcType=JdbcType.TINYINT),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="is_show", property="isShow", jdbcType=JdbcType.TINYINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="attr_keys", property="attrKeys", jdbcType=JdbcType.LONGVARCHAR)
    })
    MallOrderPlan selectByPrimaryKey(MallOrderPlanKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderPlanSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallOrderPlan record, @Param("example") MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderPlanSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") MallOrderPlan record, @Param("example") MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderPlanSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallOrderPlan record, @Param("example") MallOrderPlanExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallOrderPlanSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallOrderPlan record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @Update({
        "update mall_order_plan",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "line_key = #{lineKey,jdbcType=VARCHAR},",
          "clerk_key = #{clerkKey,jdbcType=VARCHAR},",
          "plan_time = #{planTime,jdbcType=INTEGER},",
          "plan_num = #{planNum,jdbcType=INTEGER},",
          "goods_key = #{goodsKey,jdbcType=VARCHAR},",
          "leader_key = #{leaderKey,jdbcType=VARCHAR},",
          "salesman_key = #{salesmanKey,jdbcType=VARCHAR},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "saas_userid = #{saasUserid,jdbcType=CHAR},",
          "order_type = #{orderType,jdbcType=TINYINT},",
          "delivery_key = #{deliveryKey,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "goods_name = #{goodsName,jdbcType=VARCHAR},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "attr_names = #{attrNames,jdbcType=VARCHAR},",
          "pay_amount = #{payAmount,jdbcType=DECIMAL},",
          "`state` = #{state,jdbcType=VARCHAR},",
          "is_change = #{isChange,jdbcType=TINYINT},",
          "change_log = #{changeLog,jdbcType=VARCHAR},",
          "is_purchasing = #{isPurchasing,jdbcType=TINYINT},",
          "is_delete = #{isDelete,jdbcType=TINYINT},",
          "is_show = #{isShow,jdbcType=TINYINT},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "version = #{version,jdbcType=INTEGER},",
          "attr_keys = #{attrKeys,jdbcType=LONGVARCHAR}",
        "where order_plan_key = #{orderPlanKey,jdbcType=VARCHAR}",
          "and order_key = #{orderKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(MallOrderPlan record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_order_plan
     *
     * @mbg.generated
     */
    @Update({
        "update mall_order_plan",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "line_key = #{lineKey,jdbcType=VARCHAR},",
          "clerk_key = #{clerkKey,jdbcType=VARCHAR},",
          "plan_time = #{planTime,jdbcType=INTEGER},",
          "plan_num = #{planNum,jdbcType=INTEGER},",
          "goods_key = #{goodsKey,jdbcType=VARCHAR},",
          "leader_key = #{leaderKey,jdbcType=VARCHAR},",
          "salesman_key = #{salesmanKey,jdbcType=VARCHAR},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "saas_userid = #{saasUserid,jdbcType=CHAR},",
          "order_type = #{orderType,jdbcType=TINYINT},",
          "delivery_key = #{deliveryKey,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "goods_name = #{goodsName,jdbcType=VARCHAR},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "attr_names = #{attrNames,jdbcType=VARCHAR},",
          "pay_amount = #{payAmount,jdbcType=DECIMAL},",
          "`state` = #{state,jdbcType=VARCHAR},",
          "is_change = #{isChange,jdbcType=TINYINT},",
          "change_log = #{changeLog,jdbcType=VARCHAR},",
          "is_purchasing = #{isPurchasing,jdbcType=TINYINT},",
          "is_delete = #{isDelete,jdbcType=TINYINT},",
          "is_show = #{isShow,jdbcType=TINYINT},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "version = #{version,jdbcType=INTEGER}",
        "where order_plan_key = #{orderPlanKey,jdbcType=VARCHAR}",
          "and order_key = #{orderKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallOrderPlan record);
}